using Precise.Products;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Abp.Domain.Entities.Auditing;
using Abp.Domain.Entities;
using System.Collections.Generic;

namespace Precise.Products
{
    [Table("Goods")]
    public class Goods : Entity<long>, IMustHaveTenant
    {
        public int TenantId { get; set; }


        [Required]
        [StringLength(GoodsConsts.MaxNameLength, MinimumLength = GoodsConsts.MinNameLength)]
        public virtual string Name { get; set; }

        public virtual long TotalNumber { get; set; }

        public virtual decimal Price { get; set; }

        public virtual string Description { get; set; }


        public virtual long ProductId { get; set; }
        public Product Product { get; set; }

        public ICollection<GoodsImage> Images { get; set; }

    }
}